package com.zxc.dao;

import com.zxc.model.Diseases.DiseasesDetails;
import com.zxc.model.Diseases.DiseasesHistory;
import com.zxc.model.Diseases.DiseasesVO;
import com.zxc.model.Diseases.Treatment;

import java.util.List;

public interface DiseasesDao {



/*   这里参考
*           https://blog.csdn.net/edison_03/article/details/77163792
*    如果不这样弄 会报错
*    mybatis动态表名遇见There is no getter for property named 'tableName' in 'class java.lang.String'
*
*    原因:Mybatis默认采用ONGL解析参数，所以会自动采用对象树的形式取string.tableName值，引起报错。
*
* */
            public List<DiseasesVO> findTreatmentByDiseasesNo(DiseasesVO diseasesVO);
             public List<DiseasesHistory> findTreatmentByDiseasesHistory(DiseasesHistory diseasesVO);

            DiseasesDetails selectTreatmentByDiseasesById(String id);
            //传入对象
            public List<DiseasesVO> selectTreatmentByDiseases(DiseasesVO diseasesVO);
                    List<Treatment> queryTemplateById(String id);
            //测试：为表插入25个主键
            int insertTestId(DiseasesVO diseasesVO);
}










